package com.kaluli.project.service;

import javax.transaction.Transactional;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Service;

import com.kaluli.project.domain.entity.KllProduct;
import com.kaluli.project.domain.entity.KllProductVo;
import com.kaluli.project.domain.repository.KllProSkuRepository;
import com.kaluli.project.domain.repository.KllProductRepository;

@Service
@Configuration
@Transactional
public class KllProductService extends CommonService{

	

	@Autowired
	private KllProductRepository kllProductRepository ;
	
	@Autowired
	private KllProSkuRepository kllProSkuRepository ;
	

	public KllProductVo findById(String id) {
		return kllProductRepository.findById(id);
	}
	
	public KllProduct findItems(Long id){
		return kllProSkuRepository.findItems(id);
		
	}
	
}
